(function(){
	/**
	 * 创建信息管理
	 * params:{
	 *    
	 * }
	 */
	com.hp.demo.vteam.components.CreateInfoManager = Ext.extend(Ext.form.FormPanel,{
		initComponent:function()
		{
			Ext.apply(this,{
				flex:1,
				fullscreen:true,
				items:[
					{
						xtype:'textfield',
						labelWidth:'8em',
						name:'name',
						label:com.hp.demo.vteam.dict.FIELDS.INFOMANAGER_NAME,
						labelAlign:'left'
					},
					{
						xtype:'ajaxselect',
						valueField:"id",
						displayField:'name',
						name:'inforKindId',
						store:com.hp.demo.vteam.base.QuerySelectStore({
							url:com.hp.demo.vteam.dict.REQUEST.InfoKind,
							model:'InfoKind',
							errorMsg:com.hp.demo.vteam.dict.ERRORS.QUERY_INFO_KIND_SYS
						}),
						labelWidth:'8em',
						label:com.hp.demo.vteam.dict.FIELDS.INFOKIND_NAME,
						labelAlign:'left'
					},
					{
						xtype:'textareafield',
						labelAlign:'top',
						labelWidth:'100%',
						name:'txt',
						label:com.hp.demo.vteam.dict.FIELDS.INFOMANAGER_TXT
					},
					{
						xtype:'textareafield',
						labelAlign:'top',
						labelWidth:'100%',
						name:'desc',
						label:com.hp.demo.vteam.dict.FIELDS.INFOMANAGER_DESC
					}
				],
				dockedItems:{
					xtype:'toolbar',
					dock:'bottom',
					items:[
						{xtype:'spacer'},
						{xtype:'button',text:com.hp.demo.vteam.dict.ITEM.save,scope:this,handler:function(){
								com.hp.demo.vteam.base.status_msg(com.hp.demo.vteam.dict.SUCCESSES.SAVE_BEGIN);
								this.submit({
									url:com.hp.demo.vteam.dict.REQUEST.InfoManager,
									method:'post',
									params:{method:'edit'},
									success:function(){
										com.hp.demo.vteam.base.Action(com.hp.demo.vteam.dict.ID.INFO_MANAGER,com.hp.demo.vteam.dict.SUCCESSES.CREATE_INFO_MANAGER);
									},
									failure:function(f,r){
										if(r.status!=200)
										{
											com.hp.demo.vteam.base.status_msg(com.hp.demo.vteam.dict.ERRORS.CREATE_INFO_MANAGER_SYS);
										}
										else
										{
											var jRlt = Ext.decode(r.responseText);
											com.hp.demo.vteam.base.status_msg(com.hp.demo.vteam.dict.ERRORS.CREATE_INFO_MANAGER + '[' + jRlt.msg + ']!');
										}
									}
								});
							}
						}
					]
				}
			});
			com.hp.demo.vteam.components.CreateInfoManager.superclass.initComponent.call(this);
		}
	});
	return com.hp.demo.vteam.components.CreateInfoManager;
})();